<?php
/**
 * Created by PhpStorm.
 * User: Da Xiong
 * Date: 2019/2/12
 * Time: 11:52
 */

namespace App\Model;


class VideosBoboModel extends BaseModel
{
    protected $table = 'videos_bobo';
    protected $fillable = [
        'id','title','thumb','view','share','cateid',
        'userid','status','banner','link','chanel_id','option','created_at','updated_at',
    ];
    const STATUS_1 = 1;
    const STATUS_2 = 2;
    const OPTION_1 = 1;//未推荐
    const OPTION_2 = 2;//推荐
    const BANNER_1 = 1;//轮播否
    const BANNER_2 = 2;//轮播是
    const STATUS_TEXT = [
        self::STATUS_2 => '<span class="el-tag el-tag--danger">下架</span>',
        self::STATUS_1 => '<span class="el-tag">上架</span>',
    ];
    const OPTION_TEXT = [
        self::OPTION_1 => '<span class="el-tag">否</span>',
        self::OPTION_2 => '<span class="el-tag">是</span>',
    ];
    const BANNER_TEXT = [
        self::BANNER_1 => '<span class="el-tag">否</span>',
        self::BANNER_2 => '<span class="el-tag">是</span>',
    ];

}
